Selection representation methods applied to logical groupings

ABSTRACT

Systems and methods for generating selection representations for items in a tree structure and applying selection representations to logical groupings. An exemplary method includes retrieving a first tree structure that reflects a hierarchy of data from at least one of memory or storage, identifying a first grouping of items in the first tree structure, identifying a remainder of items in the first tree structure, displaying the first grouping and the remainder of items in the first tree structure on the display, receiving positive selections or unselections of at least one of the first grouping of items or the remainder of items for including or excluding in performing a predetermined function on the positively selected or unselected items, generating a selection representation for the first grouping of items and the remainder of items based on the user input, and merging the selection representation for the first grouping of items and the remainder of items to generate a final selection representation.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is application is a continuation-in-part application of U.S. patent application Ser. No. 11/325,689, filed Jan. 4, 2006, now U.S. Pat. No. 7,526,495 which is a continuation-in-part application of U.S. patent application Ser. No. 11/324,593, filed Jan.3, 2006, which applications are incorporated herein by reference in their entireties.

BACKGROUND OF THE INVENTION

1. The Field of the Invention

The present invention relates to methods for efficiently generating a selection representation for items in tree-type data structures. More particularly, the present invention relates to systems and methods for using selection representations in logical groupings in a tree structure.

2. The Relevant Technology

Tree structures are used extensively in computer science and telecommunications because of the organized manner in which the hierarchical nature of a structure can be depicted in graphical form. The elements of the tree structure have certain terminology. The elements themselves are called “nodes.” The lines connecting elements are called “branches.” The starting node is often called the “root.” A node is a “parent” of another node if it is one step higher in the hierarchy. “Sibling” nodes share the same parent node and are referred to as children of the parent node. Nodes without children are called “end-nodes” or “leaves.”

Tree structures are used to depict all kinds of taxonomic knowledge, such as family trees, the Evolutionary tree, the grammatical structure of a language, the way web pages are logically ordered in a web site, etc. In a tree structure there is only one path from any point to any other point. Thus, each element can be defined by a particular path.

In a computer science environment, when a user is allowed to select various elements in a tree structure, the user must explicitly call out which items they choose to select. As can be appreciated, for a very large tree structure, the selection list created can become extensive. Furthermore, because tree structures can have multiple tiers of parent/children nodes, the user may want to select a parent node, but not select one or more children of the parent. This can result in extensive selection lists to accommodate selection and/or deselection of parent, children, grandchildren, great grandchildren nodes, etc.

FIG. 1 illustrates an exemplary selection list for use with a backup system. The user has selected certain files to be included in a backup. Each of the files or elements are represented by an explicit pathway so that a processor will know where in a file system to look for the element. In this exemplary hypothetical, the file system relates to files contained in the E:\ drive. Had the user wanted all of the files in the E drive to be backed up, it would be a simple matter for the selection system to simply list E:\. However, in the embodiment of FIG. 1, the user has determined that certain files are not to be backed up, and hence, the need to explicitly state all of the files that the user requests to be positively selected for saving. As can be seen, the selection list just for the E drive is extensive. When other drives are also considered, it is appreciated that the selection list can become extremely long depending on the number of files selected for backup.

Creating a selection list is further complicated because often for certain predetermined functions, such as in SQL or Exchange applications, particular files must be grouped together for various reasons, hereinafter referred to as a “group” or “grouping.” A user may want to perform a function (e.g., a backup or recovery) on a given item in a group without wanting to know what individual items comprise the group. Within this example, it might be detrimental to allow a user to perform a function on a given item that belongs to a group, without including the other items that comprise the group. Thus, when performing a function on groups, most applications require the group-specific items be grouped and separated from the items. The user, then, is presented with items and groups rather than the individual items that make up the groups. This protects the user from inadvertently damaging the groups via an erroneous function performed on an individual item when the other items of the group should also be taken into account.

Conventionally, when performing a function on the file system, a selection list of items must be generated for the selected/deselected items of the file system as well as for each group. The entire file system must then be filtered (i.e., enumerated recursively and each item compared) against each of these selection lists. This process may need to be repeated several times, depending on the number of groups that must be taken into account. Thus, such an operation can be performance-intensive, particularly, if there are many groups to be considered.

BRIEF DESCRIPTION OF THE DRAWINGS

To further clarify the above and other features of the present invention, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It is appreciated that these drawings depict only typical embodiments of the invention and are therefore not to be considered limiting of its scope. The invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:

FIG. 1 illustrates a conventional selection listing of items in a tree structure for inclusion in a predetermined function;

FIGS. 2A through 2C illustrate various embodiments of an inclusive selection according to embodiments of the invention;

FIGS. 2D through 2F illustrate various embodiments of an exclusive selection according to embodiment of the invention;

FIG. 3 illustrates a selection representation using modifiers according to the present invention;

FIG. 4 illustrates an exemplary system for implementing methods of the present invention;

FIG. 5 illustrates an exemplary user interface for implementing methods of the present invention;

FIG. 6 illustrates an exemplary method of generating selection representations of the present invention;

FIG. 7 illustrates an exemplary method of performing an initial analysis of the item tree structure to form a selection representation;

FIG. 8 illustrates an exemplary method of performing real-time construction of a selection representation tree;

FIG. 9 illustrates an exemplary method of performing real-time construction of a selection representation tree;

FIG. 10A illustrates an exemplary item tree and FIG. 10B illustrates a corresponding selection representation tree;

FIG. 11 illustrates an exemplary method of performing selection rules using groupings;

FIG. 12A illustrates exemplary groupings as sub-sets of an item tree;

FIGS. 12B and 12C illustrate exemplary selection representations for the groupings of FIG. 12A;

FIG. 12D illustrates the remainder items of the item tree upon filtering the item tree with the selection representations of FIGS. 12B and 12C;

FIG. 12E illustrates a logical view of the remainder items and the groupings that can be presented to a user to selection and also shows that the user has selected certain items;

FIGS. 12F through 12H illustrate the selection representations for the remainder items and the groupings d on the user selection illustrated in FIG. 12E; and

FIG. 12I illustrates a final selection representation after merging the selection representations illustrates in FIGS. 12F through 12H which can be used to filter against the full item tree to generate a final explicit list of items upon which to perform a predetermined function.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

The present invention relates to systems and methods for implementing selection processes with data structures organized as a tree structure in which a selection representation is formulated and subsequently used based on novel selection rules. By using the selection rules described herein, parent and children nodes can be expressed using only two modifiers. This tremendously reduces the number of items that must be explicitly expressed to only a few expressed nodes (using the modifiers) that represent the entire set. The selection rules described herein can apply to any list of items organized as a tree structure—that is, any system whose members have a parent-child hierarchical relationship. Such a data structure, like a file system for example, can be generally represented with a tree structure. Normally, when a user desires to perform an action on one or more members of the tree structure, a selection set explicitly recites all parents, children, and/or grandchildren, etc., selected by the user. In most cases, this selection set is not an efficient way to describe the selection. The current invention stipulates a set of rules that dictate what items shall appear in the selection representation to reduce the number of items required to be listed in a selection list and, in most cases, yields the minimal set of items. Further, the present invention provides for real-time construction of the selection representation.

The selection representations can be generated for the tree structure as a whole or for sub-sets of the tree structure (e.g., groupings). Multiple selection representations for a particular tree structure can then be merged according to merging rules. Finally, the final selection representation can be filtered against items in the tree structure to generate a final explicit list of items on which to perform a function.

In constructing selection representations, the present invention allows the use of two different selection modifiers to express inclusion and exclusion in a selection representation. In one exemplary embodiment, a modifier “include” is used to indicate items that are to be included in the particular predetermined process desired by the user while the modifier “exclude” is used to indicate items in the selection representation that are not to be included in the predetermined process. While the terms “include” and “exclude” are exemplarily used to indicate the two modifiers that will be used in the selection representation, it will be appreciated that any term, alphanumeric string, icon and/or other indicator may be used to signify an “include” modifier and an “exclude” modifier and that these exact terms are not required. Using the FIGS. 2A through 2F, various terminology will now be described.

An inclusive selection exists where (a) where the node itself is positively selected (therefore all of its children are explicitly or implicitly selected) (b) more than half of the node's immediate children are positively selected; or (c) more than half of the node's immediate children are inclusively selected. FIG. 2A illustrates exemplary tree structures having a parent node A and children node B through F to illustrate an “inclusive selection.” Note that parent node A may be a child node of another node, but is labeled as a “parent node” in this example to provide a reference point and to distinguish from children nodes B through F. In one embodiment, parent node A may be a “root node.”

FIG. 2A illustrates situation (a) of inclusive selection because the parent node A and all of the children nodes B through F are selected as indicated by the shading of the nodes. The situation of FIG. 2A can occur in a couple of different ways. First, a user may positively select all of Nodes A and Nodes B through F. For example, the user can access a user interface and use a selection mechanism which earmarks or tags Node A and Nodes B through F to be positively selected. Second, Node A itself can be positively selected by a user, but none of the children Nodes B through F are positively selected. However, even though none of the children Nodes B through F are positively selected, they are all children of Node A and can be considered to be implicitly selected by virtue of the positive selection of Node A.

FIG. 2B illustrates situation (b) of inclusive selection. In this embodiment, more than half of the children of parent Node A are positively selected as indicated by the shading of the nodes. In one embodiment, Node A can also be positively selected, with children nodes B, C and E being positively selected as well. In another embodiment, only children nodes B, C and E are positively selected with Node A being implicitly selected by the positive selection of more than half of its children.

FIG. 2C illustrates situation (c) of inclusive selection. In this embodiment, more than half of children Nodes B through F are inclusively selected. That is, as shown in FIG. 2C, Nodes D through F each have three grandchildren nodes (with respect to parent Node A), with a majority of the grandchildren nodes for each child nodes D through F being positively selected so that the child nodes D through F are implicitly selected or “inclusively selected.” Therefore, parent Node A can also be implicitly selected. In another embodiment, parent Node A may also be positively selected, with the selected grandchildren nodes being positively selected as well.

An exclusive selection exists where (a) where the node itself is explicitly unselected (therefore all of its children are positively or implicitly unselected) (b) less than half of the node's immediate children are selected; or (c) more than half of the node's immediate children are exclusively selected. FIG. 2D illustrates exemplary tree structures having a parent node A and children node B through F to illustrate an “exclusive selection.” Note that parent node A may be a child node of another node, but is labeled as a “parent node” in this example to provide a reference point and to distinguish from children nodes B through F.

FIG. 2D illustrates situation (a) of exclusive selection because the parent node A as well as all of the children nodes B through F are unselected.

FIG. 2E illustrates situation (b) of exclusive selection because the parent node A is unselected and less than half of the children nodes of a root node are selected. In one embodiment, a user may positively select parent node A and then positively select less than half of the children nodes B through F belonging to parent node A. However, because less than half of the children of parent node A are positively selected, parent node A is implicitly unselected. Thus, positive selection of less than half of the children of a root node results in explicit or implicit exclusion of the root node.

FIG. 2F illustrates situation (c) of exclusive selection. In this embodiment, less than half of children Nodes B through F are exclusively selected. That is, as shown in FIG. 2F, Nodes D through F each have three grandchildren nodes (with respect to parent Node A), with a minority of the grandchildren nodes for each child nodes D through F being positively selected so that the child nodes D through F are implicitly unselected or “exclusively selected.” Therefore, parent Node A can also be explicitly or implicitly unselected.

The embodiments of FIGS. 2A through 2F were provided for purposes of illustrating inclusive selection and exclusive selection are not to be considered to be limiting to the scope of the present invention. While each of the embodiments of FIGS. 2A through 2F describe selection of a parent node or child node as positive selection, as an alternative to positive selection, in each of these embodiments, Nodes A through F could by default be selected unless they are positively unselected.

The present invention relates to identifying an efficient manner for expressing a selection representation for selected nodes and for efficiently constructing the selection representation. We start with the premise that a “selection representation” is a set of explicit nodes, along with their associated modifier, that describes a user selection unambiguously. “Explicit nodes” are those nodes that will appear in the selection representation while “implicit nodes” are those nodes that will not appear in the selection representation but are implied by their parents in the selection representation. So the possible explicit recitations of nodes can be an explicit node of an inclusive selection using an “include” modifier or an explicit node of exclusive selection using an “exclude” modifier. So, an explicit node of an inclusive selection has an “include” modifier while an explicit node of exclusive selection has an “exclude” modifier.

Thus, a node listed in the selection representation with the modifier “include” indicates that that node and its children, except any nodes that appear in the selection representation with the modifier “exclude,” are selected. Conversely, a node listed in the selection representation with the modifier “exclude” indicates that that node and its children, except any nodes that appear in the selection representation with the modifier “include,” are unselected. Thus, as implied by the fact that nodes that have a different selection type than its parent will be listed explicitly in the selection representation, along any branch, the explicit nodes should alternate between inclusive selection type and exclusive selection type.

Finally, moving from the root of the tree to the branches, the first positively or implicitly selected node of an inclusive selection is the first explicit node in the selection representation. The same is true for an exclusive selection—that is, the first positively or implicitly selected node in an exclusive selection is the first explicit node in the selection representation. This may seem counterintuitive not to list the first unselected node as the first explicit node for an exclusive selection. However, an exclusion selection, like an inclusive selection, is defined by what it is rather than what it is not.

The following will illustrate how these selection rules may apply to the exemplary embodiments of FIGS. 2A through 2F. The embodiments of FIGS. 2A through 2C have illustrated various “inclusive selections” while the embodiments of FIGS. 2D through 2F illustrate “exclusive selection” situations. Thus, the inclusive selection situations of FIGS. 2A through 2C are predominantly weighted to including a parent node, but may exclude one or more children nodes. For inclusive selections, the first selected node from the root of the tree is the first explicit node in the selection representation. This may be a positively selected node or an implicitly selected node. Thus, in the embodiments of FIGS. 2A through 2C, in each case, Parent Node A is the first explicit node. An explicit node is represented by its full path and an associated modifier. Thus, the parent node in each of FIGS. 2A through 2C will be listed as

-   -   INCLUDE A:\.

A node that has the same selection type as its parent is an implicit node and does not need to be included in the selection representation. Thus, in FIG. 2A, none of the children nodes B through F need to be listed in the selection representation. Similarly, in FIGS. 2B and 2C, none of children nodes D through F need to be listed in the selection representation.

However, a node that has a different selection type from its parent is an explicit node. Thus, in FIG. 2B, children nodes B and C will be explicitly included in the selection representation because they are unselected while parent node A is selected. Thus, the selection representation of FIG. 2B will be:

-   -   INCLUDE A:\     -   EXCLUDE A:\B     -   EXCLUDE A:\C.

With respect to FIG. 2C, a majority of the children nodes of child node D are positively selected (i.e., grandchildren nodes H and I), resulting in node D being implicitly selected. Similarly, a majority of children nodes of child node E and F are also positively selected, resulting in nodes E and F being implicitly selected. Because a majority of children nodes of parent node A are implicitly selected (i.e., children nodes D, E and F), this results in parent node A being implicitly selected. The first explicit node, therefore, is parent node A. A node that has a different selection type from its parent is an explicit node. Therefore, child nodes B and C will be explicitly included in the selection representation. A node that has the same selection type as its parent is an implicit node. Therefore, children nodes D, E and F will not be included in the selection representation. However, because grandchildren nodes G, J and M have a different selection type than their parent nodes D, E and F (which are implicitly selected), then the grandchildren nodes G, J and M will be explicitly expressed in the selection representations. Based on the foregoing, the selection representation for FIG. 2C is expressed as follows:

-   -   INCLUDE A:\     -   EXCLUDE A:\B     -   EXCLUDE A:\C     -   EXCLUDE A:\D\G     -   EXCLUDE A:\E\J     -   EXCLUDE A:\F\M.

Turning now to the exclusion selections illustrated in FIGS. 2D through 2F, these exclusion selections are predominantly weighted to exclude a parent node, but include one or more children nodes. With regard to FIG. 2D, since the analysis first looks for the first node of inclusion, there being none, none of the nodes will be included in the selection representation.

With respect to FIG. 2E, the first selected nodes are children nodes E and F. Thus, the selection representation with respect to FIG. 2E will be

-   -   INCLUDE A:\E     -   INCLUDE A:\F.

Finally, with respect to FIG. 2F, the first selected nodes are grandchildren nodes I, L and O. Thus, the selection representation for the configuration of FIG. 2F will be:

-   -   INCLUDE A:\D\I     -   INCLUDE A:\E\L     -   INCLUDE A:\F\O.

The present invention provides for a reduction in the number of items that are listed in the selection representation, by reducing the listed items using include/exclude modifiers. This method results in less processing time to generate and then use a selection representation to perform a predetermined function. When considering the extent of some tree structure lists, the ability to formulate a selection representation using exclusion/inclusion modifiers can drastically reduce the length of the selection representation in situations where less than half of the children are positively unselected. For a large system, such as a file system, the difference could be significant. FIG. 3 illustrates a selection representation for the same file system selection represented in FIG. 1. As seen, the present invention drastically reduces the number of items listed in the selection representation and also allows for items to be listed by a modifier “include” or “exclude.” Whereas, the embodiment of FIG. 1 required all selected items to be listed.

Although not required, the invention will be described in the general context of computer-executable instructions, such as program modules, being executed by computers in network environments. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of the program code means for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represents examples of corresponding acts for implementing the functions described in such steps.

Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including personal computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. The invention may also be practiced in distributed computing environments where tasks are performed by local and remote processing devices that are linked (either by hardwired links, wireless links, or by a combination of hardwired or wireless links) through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including personal computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. The invention may also be practiced in distributed computing environments where local and remote processing devices perform tasks and are linked (either by hardwired links, wireless links, or by a combination of hardwired or wireless links) through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

With reference to FIG. 4, an exemplary system 100 for implementing the invention includes a general-purpose computing device in the form of a conventional computer 102, including a processing unit 104, a system memory 106, and a system bus 108 that couples various system components including the system memory 106 to the processing unit 104. The system bus 108 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. The system memory includes read only memory (ROM) 110 and random access memory (RAM) 112. A basic input/output system (BIOS) 114, containing the basic routines that help transfer information between elements within the computer 102, such as during start-up, may be stored in ROM 110.

The computer 102 may also include a magnetic hard disk drive 116 for reading from and writing to a magnetic hard disk 118, a magnetic disc drive 120 for reading from or writing to a removable magnetic disk 122, and an optical disc drive 124 for reading from or writing to removable optical disc 126 such as a CD ROM or other optical media. The magnetic hard disk drive 116, magnetic disk drive 120, and optical disc drive 124 are connected to the system bus 108 by a hard disk drive interface 128, a magnetic disk drive-interface 130, and an optical drive interface 132, respectively. The drives and their associated computer-readable media provide nonvolatile storage of computer-executable instructions, data structures, program modules and other data for the computer 102. Although the exemplary environment described herein employs a magnetic hard disk 118, a removable magnetic disk 122 and a removable optical disc 126, other types of computer readable media for storing data can be used, including magnetic cassettes, flash memory cards, digital versatile disks, Bernoulli cartridges, RAMs, ROMs, and the like.

Program code means comprising one or more program modules may be stored on the hard disk 118, magnetic disk 122, optical disc 126, ROM 110 or RAM 112, including an operating system 134, one or more application programs 136, a selection module 138, a graphical user interface module 139, and program data 140. A user may enter commands and information into the computer 102 through keyboard 142, pointing device 144, or other input devices (not shown), such as a microphone, joy stick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 104 through a serial port interface 146 coupled to system bus 108. Alternatively, the input devices may be connected by other interfaces, such as a parallel port, a game port or a universal serial bus (USB). A monitor 148 or another display device is also connected to system bus 108 via an interface, such as video adapter 150. In addition to the monitor, personal computers typically include other peripheral output devices (not shown), such as speakers and printers.

The computer 102 may operate in a networked environment using logical connections to one or more remote computers, such as remote computers 152 a and 152 b. Remote computers 152 a and 152 b may each be another personal computer, a server, a router, a network PC, a peer device or other common network node, and typically include many or all of the elements described above relative to the computer 102. The logical connections depicted in FIG. 4 include a local area network (LAN) 154 and a wide area network (WAN) 156 that are presented here by way of example and not limitation. Such networking environments are commonplace in office-wide or enterprise-wide computer networks, intranets and the Internet.

When used in a LAN networking environment, the computer 102 is connected to the local network 154 through a network interface or adapter 158. When used in a WAN networking environment, the computer 102 may include a modem 160, a wireless link, or other means for establishing communications over the wide area network 156, such as the Internet. The modem 160, which may be internal or external, is connected to the system bus 108 via the serial port interface 146. In a networked environment, program modules depicted relative to the computer 102, or portions thereof, may be stored in the remote memory storage device. It will be appreciated that the network connections shown are exemplary and other means of establishing communications over wide area network 156 may be used.

Computer 102 can be relatively simple (e.g., a desktop computer) or relatively complex (e.g., a large database server or one of a cluster of servers). The computer may further be a node on a network or a storage device on a storage area network (SAN). Computer 102 may also operate under a different operating system or platform than the server 152 a, 152 b. In the context of a backup operation, a computer may operate under the control of the server 152 a, 152 b.

System 100 is not limited to any particular hardware configuration or operating system. Various hardware configurations and operating systems have need of generating selection representations of data prior to performing a predetermined function on the selected items. Therefore, these hardware configurations and operating systems would benefit from the selection representation systems and methods taught herein.

In one exemplary embodiment, application program 136 can be a backup/restore application used for backing up/restoring data stored on computer 102. Computer 102 may communicate with remote computer 152 a, 152 b, which is a server that contains a backup/restore application. The server 152 a, 152 b communicates with a backup storage device (not shown) where one or more copies of the data of computer 102 is stored. The computer 102, for instance, has memory 106 or storage 118, 112 or 126 that contains data (including applications, services, and/or volumes). For example, memory 106 or storage 118, 112 or 126 may have data stored in an organized, hierarchical file system. Also, services represent a type of application and may therefore be referred to as applications herein.

The backup/restore application is one example of systems and methods for performing a predetermined function on items in a tree structure, the predetermined function being selectively backing up and/or recovering data. As used herein, the term “data” may include, but is not limited to, directories (e.g., volumes, file systems, and the like), user data, system data, applications, services, operating systems, and the like, that can be stored on one or more storage devices of a computer. Backing up or recovering the operating system may include backing up or recovering any of the data herein defined or understood by those of skill in the art.

The data may be organized as a tree structure having logical directories that do not necessarily correspond to a particular storage device. Even though data may exist on many different storage devices, data can be organized into logical directories and subdirectories so that a user can easily locate information. In one example, in Windows® operating system, the main directories in a tree structure are referred to as volumes. Volumes include, for example, the C drive and D drive, which are typical volumes of storage that are located on a computer, even though the C or D drive itself may comprise a stack of hard disks. It is not necessary for a user to know from which particular disk to obtain information.

Thus, directories exist to help a user navigate through the data on the computer. Other directories may exist to which the computer has access through a network. Each directory, subdirectory, grouping, and individual item in a file system can correspond to a node in a tree structure.

In addition, as will be described further below, items in a tree structure can be organized into “groups” or “groupings.” As used herein, the term “group” or “grouping” refers to the desirability to logically identify certain items in a tree structure that should be considered together and on which the same action should occur across all items in the grouping. For example, if one item in the grouping should be excluded from a particular predetermined function, all items in the grouping should also be excluded from the particular function. All items in the grouping will thus include the same selection status. The term group or grouping is not meant to require that the items be stored together on the same storage device or be displayed together on a user interface. In one embodiment, a grouping can be formed from items on the same branch of a tree. However, a grouping can also include items on different branches of the tree structure. Thus, because the items in a grouping have the same inclusive or exclusive status, because the items can be located on different branches on a tree, this does not always determine the selection representation state of the tree structure as a whole.

While the term “group” and “grouping” is broad enough to apply to any system in which a tree structure is implemented, exemplarily, groupings can be applied to the systems described above in FIG. 4. For example, directories in a tree structure may exist specific to a particular function of the computer. For example, in Windows® operating system, certain data related to preserving the operating system state of the computer can be organized into an operating system state volume (herein referred to as the VSS volume). Furthermore, the VSS volume may include other applications and/or services that can be used to restore data on the computer. For a VSS volume, more than one storage device may be involved and the data for the VSS volume may reside in different storage devices of a computer, such as the C drive, D drive and/or other drives. The VSS volume is thus simply a logical organization for locating data, but does not represent an actual set of storage devices. However, in one embodiment, all of the data pertaining to the VSS volume could be located in a single distinct storage device rather than distributed on multiple storage devices on the computer.

The Windows® operating system is used exemplarily herein to describe the present invention. However, it should be appreciated that the systems and methods of backing up and restoring a computer can also apply to other operating systems. For example, other operating systems would typically desire that some or all aspects of an operating system state be backed up. In addition, other operating systems utilize directories or file systems in the form of tree structures to assist a user in navigating through the data residing on a computer. Thus, the term “directory” can be used interchangeably with the term “volume” or “file system” to refer to any means of logically organizing data on a computer in the form of a tree structure.

Typically, a user will choose to select all of the groupings relating to the volumes of a computer or computer to be backed up. However, less than all of the groupings may be selected by the user which specifies that less than all of the data of a computer should be backed up. This may be beneficial where the user knows that changes have occurred only in certain groupings without performing a backup of the entire client data system. A user may select one or more groupings by accessing a user interface that communicates with a backup/restore application (see FIG. 5). Groupings may include information that identifies the items that need to be backed up.

As used herein, the term “user” may refer to a person operating the server 152 a, 152 b (e.g., administrator). Alternatively, the user may refer to a person at the computer 102. Both types of users would be able to initiate a request for backup or restore, although it will be appreciated that the server 152 a, 152 b may have additional functionalities not available to the computer 102. A user may establish a schedule that defines the times at which the server 152 a, 152 b automatically performs a backup operation on the data of computer 102. However, users on the computers can also initiate ad hoc backup operations and recover operations.

The server 152 a, 152 b typically controls and directs all server-initiated backup operations or processes. The computer controls ad hoc backup and recover operations. The computer data can be organized into a tree structure and displayed on a user interface that communicates with a backup/restore application. In addition, the tree structure hierarchy makes it easier for a user to specify particular volumes or subdirectories to backup. The volumes and subdirectories can also be organized in terms of “groupings,” which are herein defined as a collection of data or items that are backed up during a backup session between the server 152 a, 152 b and a particular client, e.g., computer 102.

Some operating systems include writing components that operate with applications or services in order to store information on a storage device. For example, in Windows® operating system, the writing components are referred to as “writers.” Thus, the term “writer” and “writing components” will be used interchangeably to refer to any component that provides this functionality. Further, the writing components can interact with backup/restore hardware and software including snapshot generating hardware and software. Generally, a writer corresponds to at least one application or service to be backed up. The data associated with writers in a grouping may further be located in different volumes, subdirectories, and the like. For example, a writer can store data to more than one volume. In addition, some volumes are not associated with any writers. Thus, it is possible that a grouping could correspond to information stored on a volume that is associated with writers, a volume not associated with any writers, or both.

One or more files on the computer may be related to the operating system state. In one embodiment, as mentioned above, groupings can be used for organizing files related to the operating system state of the computer. For example, Microsoft® provides the Volume Shadow Copy Service and a VSS volume framework can be provided for backing up the operating system state of a computer operating on Windows®. In addition, as mentioned above, the VSS volume includes other applications and/or services that include writers. The VSS volume provides an organizational tool to backup data relating to the operating system state. Saving groupings pertaining to the operating system state of the computer allows a user to recover their operating system and return it to a previous state if needed and can be important where a user loses an operating system drive or the entire machine. Otherwise, the user would have to rebuild their system, reconfiguring services, and reinstalling and reconfiguring applications. The Windows® operating system implementing Volume Shadow Copy Service combined with a logical VSS volume described herein is only an exemplary way of organizing groupings relating to client data. Other operating system platforms can use similar or different methods of organizing groupings for data related to a computer.

A grouping can therefore include an entire volume, less than an entire volume, or data distributed on one or more volumes, the grouping including, but not limited to, a group of files, an entire file system, application-generated data such as a data or operating system information, a single file, and the like. A grouping may also include applications or services or components of applications, services, and/or operating systems distributed on one or more volumes. Thus, the term grouping is used as an organizational tool for identifying and locating items that may logically belong together and where all of the items have the same exclusive or inclusive selection status. Items can be organized and/or grouped in any suitable manner in a tree structure depending on design considerations, including a combination of groupings and ungrouped individual items.

Using the example of a Windows® operating system, FIG. 5 illustrates an example of a user interface 200. The user interfaces 200 may be associated with a backup/restore application 136, mentioned above. The user may interact with the user interface 200 to select particular volumes, groupings, and/or files to be saved. Alternatively, the user may simply list the volumes, groupings, and/or files to be backed up without using a user interface. Further, it is possible for the user to select “all” volumes to be backed up. Indeed, where the user is concerned about a consistent backed up operating system state, the user would likely select all volumes, at least the VSS volume, to be backed up. In addition, groupings can be used to identify items on which to refrain from performing a particular predetermined function, such as a backup.

FIG. 5 illustrates an interface 200 that includes a plurality of volumes 204, each identified by a particular alphanumeric character and commonly referred to as drives (e.g., A: drive, C: drive, D: drive, VSS: drive, and the like). Each volume 204 acts as a parent node in the tree structure illustrated in FIG. 5. Organized under the VSS drive 204 is a plurality of VSS groupings 206 are also provided for backup/restore functions. In this embodiment, VSS groupings 206 act as children to the VSS parent node 204 in the tree structure. In addition, the VSS grouping 206 labeled “VSS System Services” also exemplarily shows operating system writers and writer components 208 that branch as grandchildren nodes to the VSS drive 204.

In one embodiment, groupings 206 are dynamically populated and the content of the groupings 206 may be determined dynamically based in part on which writers are active on the computer. When the writers of a computer are enumerated or identified, writers of the same type become writers in a particular grouping. Thus, the writers associated with a particular grouping have the same type. For example in FIG. 5, the writers 208 each have the same type and are included in the grouping 208. If a writer for a particular application or service is not available (i.e., inactive or nonexistent), the appropriate files may be backed up via the file system when the corresponding volume(s) are selected for backup. For a given backup operation, some of the groupings may include active writers while others may not include any writers.

The above discussion of writers should not be construed to require writers to be associated with every volume or grouping. It is possible for a volume to not be associated with any writers. It is further possible for a grouping not to be associated with any writers if the information corresponding to the grouping is located on a volume that is not associated with writers. Volumes can also be associated with writers, but not associated with any of the groupings related to the operating system state. The groupings 206 and writers 208 are simply illustrates as exemplary children nodes and grandchildren nodes to VSS volume 204 to illustrate one possible user interface selection for implementing the present invention.

In the exemplary tree structure of FIG. 5, a user could select the VSS volume 204, and, unless the user selects or deselects any of the groupings 206 or sub-groupings 208, the entire VSS volume will be backed up. By selecting the VSS volume, the entire operating system state directory including all of the groupings relating to the operating system state will be backed up every time the VSS volume is selected. Having a single parent node earmarked for VSS may be desirable to make it easier for a user to identify, using a single selection (i.e., VSS volume 204), all of the groupings relating to the operating system state to ensure that the operating system state is consistent every time a backup of operating system state data occurs. However, the user is also able to select groupings 206 and/or sub-groupings 208 relating to the operating system state if so desired without being required to select the entire VSS volume 204.

Thus, as shown exemplarily in FIG. 5, the user has positively selected parent nodes C: drive 210, D: drive 212 and the VSS: volume 214. In addition, the user has positively unselected sub-grouping 216 entitled “removable storage manager” 216 and sub-grouping 218 entitled “WMI Writer.” Thus, the user interface represents an inclusive selection with respect to parent nodes C: drive 210, D: drive 212 and the VSS: volume 214. The explicit nodes that will appear in the selection representation will be chosen based on the selection rules above which, among others, state that the first selected node of an inclusive selection from the root of the tree will be the first explicit node in the selection representation.

In each case of selected parent nodes C: drive 210, D: drive 212 and VSS: volume 214, the parent node will be the first explicitly listed node. All of the groupings 206 under the VSS volume 214 are implicitly selected since they are not explicitly unselected. Thus, these implicitly selected nodes will not be listed in the selection representation since they have the same selection type as parent node VSS: volume 214. However, the sub-groupings 216, 218 do have a different selection type from parent node VSS: volume 214 since they are both unselected for backup. In addition, more than half of the sub-groupings 208 are selected for inclusion in the backup, the grouping 206 “system services” is implicitly selected. Thus, sub-grouping nodes 216, 218 will be explicitly included in the selection representation. The selection representation for the selected and unselected nodes shown in FIG. 5 is thus as follows:

-   -   INCLUDE C:\     -   INCLUDE D:\     -   INCLUDE VSS:\     -   EXCLUDE VSS:\System Services\Removable Storage manager     -   EXCLUDE VSS:\System Services\WMI Writer.

As will be appreciated, this selection representation is much smaller than explicitly listing all of the items in groupings 206 and subgroupings 208. Furthermore, it will be appreciated that the C: drive 210 and D: drive 212 may consist of potentially hundreds of items including files, applications, and/or services. The present invention, thus provides for a smaller listing than is possible with conventional system that require explicit listing of all selected nodes.

FIG. 6 illustrates an exemplary method 300 for performing the teachings of the present invention. It will be appreciated that some of the steps of method 300 can be modified, performed in a different order, eliminated, and that additional steps may be added. Exemplarily, the steps of method 300 can be performed using the system 100 of FIG. 4. Thus, the description of the steps of method 300 will be described in the context of system 100, realizing that other systems may be used to perform the steps thereof.

At 302, a server 152 a, 152 b sends a backup request to computer 102. At 304, the backup/restore application 136 receives the backup request. At 306, the selection module 138 is initiated to determine what data the user would like to be saved. At 308, the user accesses the graphical user interface module 139 which interacts with the memory 106 or storage 118, 122, 126 in order to display the potential data that can be saved. At 310, the user positively selects or positively unselects various volumes, groupings, files, services, applications, or other data for backup. Note that 308 and 310 can be performed before the backup request is sent from server 152 a, 152 b. For example, a user may preselect the data to be backed up in a prescheduled backup configuration.

At 312, the selection module 138 analyzes the user selection. At 314, this can consist of identifying a tree structure having at least one parent node and at least one child node. At 316, the selection module analyzes the root node of the tree structure to determine whether the root node is an inclusive selection type node. As an initial step, the nodes may be analyzed to identify whether each node is an inclusive selection or exclusive selection before determining whether the nodes should be explicitly included in the selection representation. In this manner, an inclusive selection node may be more easily determined.

At 318, if the root node is an inclusive selection type, then the selection module 138 lists explicitly the path of the root node in the selection representation using the “include” modifier. At 320, the selection module 138 analyses the children node of the root node to determine if any of the children nodes are a different selection type than the root node. This is also the case even if the root node is an exclusive selection type because it is possible that some of the children nodes are inclusive selection type. At 322, if any of the children are a different selection type than the root node, selection module 138 lists the path of that node explicitly using an “include” or “exclude” modifier.

By way of example, at 318, if the root node is an inclusive selection type, then the root node will be listed with the include modifier. Then, at 322 if a child node is an exclusive selection type, then the child node will be listed with an exclude modifier. Conversely, at 318, if the root node is an exclusive selection type, the root node will not be included in the selection representation. But, at 322 if a child node is an inclusive selection type, the child node will be listed in the selection representation with an include modifier.

At 324, the process is repeated for each tier of children nodes branching from the root node, including grandchildren nodes and great-grandchildren nodes, etc. At 326, the process is repeated for each root node of the tree structure. Using the foregoing exemplary method, a selection representation will result in which along any branch of the tree structure, the explicit nodes should alternate between inclusive selection type and exclusive selection type because the process analyzes each node of the branch in terms of whether the child node is a different selection type than the parent node from which the child node depends.

As illustrated in FIG. 5, the potential items in the tree structure that can be selected are displayed on the graphical user interface display 200. The user interacts with the interface 200 in order to select the items to be included in the selection representation. The user does not necessarily see the final selection representation. Nor, does the user necessarily see the real-time construction of the selection representation, that takes place as the user is making selections on the interface 200.

Exemplary methods for performing the real time construction of the selection representation include 1) tracking the selection states of the items in the item tree structure, and 2) creating and updating a selection representation tree from which the final selection representation can be easily deduced. Exemplary methods for performing the analysis of the item tree and creating and updating the selection representation tree are illustrated in FIGS. 7 and 8. As shown in FIG. 7, method 400 relates to identifying selections in an item tree. In one embodiment, the item tree is able to correlate the following for each node: the number of children for each node, the previous and current selection type for each node, and the number of inclusively-selected children for each node. In an item tree where none of the nodes have yet been selected, initially, the current selection type for each node is set to be exclusively selected and the number of inclusively-selected children is zero for each node.

At 402, selection module 138 identifies a first selected node in the item tree. At 404, the selection module 138 stores in a field corresponding to the first selected node the previous selection type as well as the current selection type of the first selected node. At 406, selection module 138 identifies a parent node of the first selected node, if any, and increments a field of the parent node with the number of inclusively selected children for the parent node. (Note, that if the user positively unselects a node, then the selection module 128 may actually be decrementing the number of inclusively selected children). At 408, the selection module 138 identifies children nodes of the first selected node, if any, and sets a selection type field of the children nodes to the same selection type as the first selected node.

At 410, the selection module 138 walks up to the parent node of the first selected node to determine if the selection type has changed by virtue of the current selection of the first selected node. If the selection type of the parent node has changed, then such change will be notated in a field corresponding to the parent node. At 412, if the selection type of the parent node has changed, the selection module 138 walks up the branch to succeeding nodes of the branch toward the root until it finds a node whose parent's selection type has not changed by the selection of the first selected node. In each case of the selection type changing, the selection module 138 updates a field to include the new selection type.

As shown in FIG. 8, method 500 relates to creating a selection representation tree. That is, in one embodiment, a selection representation tree does not exist until a user makes a first selection in the item tree. In one embodiment, the selection representation tree can correlate a node type with each node in branches that are to eventually be included in the selection representation. A node type indicates whether a node is an inclusively selected node (or inclusive node), an exclusively selected node (or exclusive node), or a connecting node. In the following discussion, the node type is indicated in a field associated with a particular node in a branch. At 502, selection module 138 identifies a first selected node in an item tree. At 504, the selection module 138 identifies the branch of the first selected node in the item tree.

At 506, the selection module 138 starts at the root node of the branch and includes the root node in the selection representation tree along with creating a corresponding field with the root's node type. For example, if the root node is inclusively selected, then the field will indicate that the root node is inclusively selected. However, if the root node is exclusively selected and is a connecting node to another inclusively selected node, then the field will indicate the root node is a connecting node.

At 508, the selection module 138 analyzes the children node of the root node in the same branch as the first selected node to determine the first of the child nodes that is a different selection type than the root node. At 510, if a child node of the root node in the branch of the first selected node is a different selection type than the root node, selection module 138 adds the child node to the selection representation tree with the appropriate node-type indicator in a field created for that node. At 512, any other children nodes in between the root node and the first child node with different selection type are included in the selection representation tree as a connecting node.

By way of example, at 508, if the root node is an inclusive selection type, then the root node will be included in the selection representation tree and have a corresponding field indicating that the root node is an inclusive node type. Then, at 510, the next child node along the branch that is an exclusive selection type is included in the selection representation tree with a field indicating exclusive node type. At 512, any nodes between the root node and the exclusive child node, if any, are included in the selection representation as connecting nodes.

Conversely, at 508, if the root node is an exclusive selection type, the root node will be included in the selection representation tree as a connecting node. At 510, the next child node along the branch that is an inclusive selection type is included in the selection representation tree with a field indicating it is an inclusive node. At 512, any nodes between the root node and the inclusive child node, if any, are included in the selection representation as connecting nodes.

At 514, the analysis proceeds for each node in the branch of paths that contains the first selected node to determine if any of the nodes are a different selection type from that of its nearest explicit parent along a particular path. The last node to be included along any path is the last identified change in selection type. The length of the analysis, of course, depends on how many paths are in the branch that include the first selected node. Thus, the analysis may occur in only a root node, or may occur down multiple nodes along a branch.

FIG. 9 illustrates an exemplary method 600 for updating a selection representation tree. At 602, selection module 138 identifies the next selected node in an item tree. At 604, the selection module 138 identifies the branch of the next selected node in the item tree. At 606, the selection module 138 uses the analysis of the item tree above to determine the top node in the branch that is the topmost node whose selection type has changed due to the next selected node. Thus the subbranch could, but does not have to include, the root node, depending on whether the root node is the topmost node whose selection type has changed due to the next selected node. Thus, a subbranch is identified with the top node and the nodes below the top node.

At 608, if the top node does not exist in the selection representation tree, then selection module 138 builds the necessary nodes that connect it to the root node in the selection representation tree.

At 609, if the top node already exists in the selection representation tree, the selection module 138 finds that existing top node in the selection representation tree and deletes the top node and the child nodes below it.

At 610, the selection module 138 adds the top node to the selection representation tree and creates a field with the node type that corresponds to the selection type of the corresponding node in the item tree node. At 612, the selection module 138 identifies a child node in the branch below the top node that is a different selection type and adds the child node to the selection representation tree with the appropriate node-type indicator.

At 614, the selection module 138 analyzes the children node therebelow to determine which of the child nodes has a different selection type than the previous inclusive or exclusive node. At 616, if a child node is a different selection type, selection module 138 adds the child node to the selection representation tree with the appropriate node-type indicator. At 618, any other children nodes in between the previous inclusive or exclusive node and the next inclusive or exclusive child node are included in the selection representation tree as a connecting node.

At 620, the analysis proceeds for each node in the branch of paths that contains the next selected node to determine if any of the nodes are a different selection type from that of its nearest parent along a particular path. The last node to be included along any path is the last identified change in selection type. The length of the analysis, of course, depends on how many paths are in the branch that include the next selected node.

Using the foregoing exemplary method, a selection representation tree will result in which along any branch of the tree structure, the explicit nodes should alternate between inclusive node type and exclusive node type along each branch with connecting nodes in between changes in selection type because the process analyzes each node of the branch in terms of whether the child node is a different selection type than the parent node from which the child node depends. It will be appreciated that the selection representation tree could actually be a sub-set of the item tree by allowing an additional field for each node to identify a node-type which is maintained simultaneously with the other fields of the item tree.

Thus, every time the user makes a selection in the item tree, the item tree is traversed, starting with the selected node, up to the last parent node (i.e., topmost node) whose selection type is affected by the selection. This branch of the parent node is then created or updated in the selection representation tree using the selection tree rules exemplarily set forth in FIGS. 8 and 9. This method utilizes a bottom-up approach to update the selection representation tree in real-time and limits the reconstructions to the selection representation tree, instead of reconstructing the item tree every time a selection is made, providing a very efficient way to follow the user's changes and ultimately construct a selection representation.

FIG. 10A illustrates an exemplary item tree in which selections have been made by a user while FIG. 10B illustrates a selection representation tree that is created. The selection representation tree has three types of nodes—inclusive nodes shown with a hatched pattern, exclusive nodes shown with shadowed circles, and connecting nodes shown with a cross-hatch pattern. While FIGS. 10A and 10B indicate the node type graphically, as discussed above, in one embodiment, the node type can be indicated in a field associated with a particular node or path in a branch. FIG. 10B can exemplarily be generated as described in greater detail in co-pending U.S. patent application Ser. No. 11/325,689, filed Jan. 4, 2006, which application is incorporated herein by reference in its entirety. While in FIGS. 10A and 10B the selection representation tree is shown separate from the item tree, in another embodiment, the selection representation tree is an extension of the item tree with the nodes of the item tree being modifiable by adding fields to the item tree data structure.

Furthermore, as can be seen from FIG. 10B, the selection representation tree which is in tree structure form should correspond with a section representation which is in list form. Thus, the selection representation of FIG. 10A, as represented by the selection representation tree in FIG. 10B can also be represented in list form as:

-   -   INCLUDE AA:     -   EXCLUDE AA:\BB     -   INCLUDE AA:\BB\II     -   EXCLUDE AA:\CC\JJ     -   EXCLUDE AA:\DD\MM.         It will thus be appreciated that the selection representation in         list form and the selection representation tree are simply two         different ways of representing a selection representation.

The foregoing has described the creation and updating of a selection representation tree for a user selection. However, as mentioned above, in certain situations, it is desirable to maintain certain items in a tree structure logically together. For example, including the item in a backup may affect other items in the grouping and, therefore, it would be desirable to withhold the item from the backup. Alternatively, the reverse may be true where including an item in a user selection may necessitate also including other items in a grouping on which to perform a particular function. For example, when one item is included in a backup, it may be desirable to include other items in a grouping in the backup even though the user did not specifically select the other items to be included in the backup.

Thus, the selection representation methods described above can apply to sub-sets of items that are grouped together into “groups” or “groupings” that can be represented by a selection representation. The grouping selection representations are used to determine a remainder item tree. The remainder item tree and grouping components can then be displayed logically to a user. The user can select items from the remainder item tree as well as components in one or more groupings. The selection representation methods described above are then used again to determine a user-d selection representation for the remainder item tree and for each grouping. The user-d selection representations are merged into a final selection representation. The final selection representation is then filtered against the file system to determine a final explicit list of items on which to perform a predetermined function.

This method takes full advantage of the efficient generation of grouping selection representations. If the average ratio of inclusive item to exclusive items is N, the number of comparisons require by this method is N times fewer than those required by a method comparing the item tree to an explicit list. If the resultant grouping selection representation is generated from merging M selection representations of M branches, the improvement in efficiency is on the order of N×M.

The present invention recognizes that the items of a grouping can be organized in a hierarchical grouping tree structure as a sub-set of the item tree structure. The grouping tree structure may include one or more leaf-components, each of which can be represented by a selection representation. The exclusion selection tree for a leaf component represents the items in the item tree structure belonging to the leaf-component. The following are the properties of a grouping: 1) Each leaf-component contains selection representation that represents the items from the item tree belonging to the leaf component; 2) Like any tree structure, the selection rules apply to groupings as well; 3) A final selection representation can be constructed from all the user-d selection representations (including remainder tree selections and group component selection); and 4) The final selection representation represents the selection of items in the item tree.

FIG. 11 illustrates an exemplary method 700 for utilizing these properties of groupings to enable efficient use of groupings to construct a final selection representation. It will be appreciated that some of the steps of method 700 can be modified, performed in a different order, eliminated, and that additional steps may be added. Exemplarily, the steps of method 700 can be performed using the system 100 of FIG. 4. Thus, the description of the steps of method 700 will be described in the context of system 100, realizing that other systems may be used to perform the steps thereof. In addition, the steps of method 700 will be described in conjunction with FIGS. 12A through 12I.

At 702, the selection module 138 identifies one or more groupings, each grouping having one or more leaf components. As shown in FIG. 12A, a first grouping G1 and second grouping G2 are identified. Grouping G1 has leaf components C11 and C12 while grouping G2 has leaf components C21 and C22. Leaf component C11 of G1 contains nodes BB, GG, HH and II under node AA, leaf component C12 contains nodes TT and UU under node DD, leaf component C21 contains nodes VV and WW under node DD, and leaf component C22 contains nodes FF, PP, QQ and RR under node AA.

At 704, the selection module 138 generates a selection representation for each leaf component of groupings G1 and G2. FIGS. 12B and 12C show selection representations for Groupings G1 and G2. Additional details regarding generating selection representations can be found in co-pending U.S. patent application Ser. No. 11/325,689, filed Jan. 4, 2006, which application is incorporated herein by reference in its entirety. Leaf component C11 includes node AA as a connecting node and node BB as an inclusive node. Leaf component C12 includes nodes AA as a connecting node, node DD as an exclusive node, and nodes TT and UU as inclusive nodes. Note that the selection module 138 only takes into account the selected nodes for a particular leaf component and does not consider other selected nodes for other leaf components when determining the selection type of a node. Therefore, because node DD of leaf component includes less than half of nodes selected (i.e., only nodes TT and UU), node DD is implicitly exclusively selected. Leaf component C21 includes node AA as a connecting node, node DD as an exclusive node, and nodes VV and WW as inclusive nodes. Finally, leaf component C22 includes node AA as a connecting node and node FF as an inclusive node.

Note that each selection representation for leaf-components C11, C12, C21 and C22 represents the items contained in the leaf-component. Furthermore, the selection representation for each leaf component can further be defined as an inclusive selection or an exclusive selection, depending on the intended use of the grouping. For example, if the groupings are used to include items in a predetermined function, then the selection representations should be treated as inclusive selection representations. If the groupings are used to exclude items from a predetermined function, then the selection representation should be treated as an exclusive selection representation. For purposes of illustrating the present invention, it will be assumed that the selection representations shown in FIGS. 12B and 12C are exclusive selection representations.

At 706, the item tree is filtered against the selection representations of the groupings to generate remainder items. Details regarding filtering items in a tree structure with a selection representation are described in further detail in co-pending U.S. patent application Ser. No. 11/396,890, filed Apr. 3, 2006, which application is incorporated herein by reference in its entirety. Where a grouping selection representation is inclusive, inclusive filtering should apply because the inclusive selection representation describes what items need to be included in the predetermined function. For a grouping selection representation that is exclusive, exclusive filtering should apply because the exclusion representation describes what items need to be excluded from the predetermined function. In the example of FIGS. 12B and 12C, the selection representations are exclusive, indicating that those selected nodes should not be included in the remainder items. FIG. 12D shows the remainder items obtained by filtering the system using exclusive filtering with the selection representations of FIGS. 12B and 12C.

At 708, the selection module 138 maps the remainder items with the groupings to be able to present a logical view of the remainder items and the groupings to the user. That is, as shown in FIG. 12E, the remainder items of FIG. 12D are shown along with groupings G1 and G2. The remainder items and groupings G1 and G2 are connected by a logical system root. FIG. 12E also shows that the components C11, C12 of Grouping G1 and components C21 and C22 of grouping G2 are logically presented to the user to enable the user to select groupings G1 and/or G2 or their components. Thus, although a user may select a component (e.g., components C11, C21 and C22 are shown as selected by the user), ultimately, the predetermined function will be made on items associated with the selected components.

Turning back to FIG. 4, an example of how the remainder items and groupings can be presented to the user is shown. As discussed above, the VSS volume can be used to group certain data related to preserving the operating system state of the computer. The VSS volume may include other applications and/or services that can be used to restore data on the computer. The VSS volume, however, is simply a logical organization for locating data, since data for the VSS volume may reside in different storage devices of a computer, such as the C drive, D drive and/or other drives. Thus, in the example of FIG. 4, the C drive and D drive could exemplarily represent remainder items while the VSS volume represents a grouping. In the particular embodiment of FIG. 4, the VSS volume grouping also includes components (i.e., ASR Disk, Other, System Root, System Fileset, System Services, and User Data) that can be selected or deselected by the user for including in a predetermined function. The embodiment of FIG. 4 also includes sub-components that can be selected or deselected.

At 710, after a user has made a selection, the selection module 138 generates a new selection representation for the remainder items and for each grouping, as shown in FIGS. 12F through 12H. Additional details regarding generating selection representations can be found in co-pending U.S. patent application Ser. No. 11/325,689, filed Jan. 4, 2006, which application is incorporated herein by reference in its entirety. Note that in this example, the first selection representations for the groupings G1 and G2 were exclusive selection representations because it was desirable to withhold the items in the grouping from the remainder items. This was for purposes of being able to identify the items in the groupings and present them as logical groupings to the user. Once the groupings are presented to the user, the user may decide to include the items in a particular grouping or sub-component on which to perform a predetermined function (as is indicated by the user selection of C11, C21 and C22). Thus, at 710, the new selection representation for a grouping may be an inclusive selection representation d on the user selection of that grouping or a sub-component of the groupings.

At 712, the selection representations for the grouping are merged to generate a resultant grouping selection representation. Merging can use exclusive dominated merge rules or inclusive dominated merge rules depending on the grouping logics and d on whether there is any dependency between the groupings. Inclusive Dominated Merge Rules should be used if there is no dependency between two particular groupings.

The following provides a description of exclusion dominated merge rules for merging two selection representations. Each node of the selection representation tree can have one of three types—inclusive node, exclusive node or connecting node. When merging two selection representation trees, there can be six possible combinations for each node pair. Given the fact that the node pair is positional (A is merged into B) and that a connecting node may have an inclusive or exclusive parent, there are altogether sixteen unique positional combinations. However, those permutations can be reduced to and processed as three basic types: Inclusive-Inclusive; Exclusive-Exclusive; and Exclusive-Inclusive.

The three merge rules for exclusive dominated merge rules are stated as follows: (1) The merge of an Exclusive-Exclusive pair is the merge of the intersection of their children; (2) The merge of an Inclusive-Inclusive pair is the symmetric difference of their children, plus the merge of the intersection of the children; (3) The merge of an Exclusive-Inclusive pair is the relative complement of the Inclusive node in the Exclusive node of their children plus the merge of the intersection of their children. Thus, the following decision-based rules can be applied for exclusive dominated merging, which will exemplarily be described as merging selection representation tree B into selection representation tree A.

-   -   1) Both Node A and Node B are Exclusive types: if A is an end         node (i.e., no children), return (nothing to merge). Else if B         is an end node, remove all the children from A. If neither A nor         B is end node, remove the complement children of A in B (the         children that are not found in B) and merge the intersection of         the children (the ones found both in the children of A and B) in         B to A.     -   2) Both Node A and Node B are Inclusive types: if B is an end         node, return (nothing to merge). Else if A is an end node, add         children of B to A. Else add all the complement children of B         (the ones not found in the children of A) to those of A and         merge the intersection of the children (the ones found both in         the children of A and B) in B to A.     -   3) Node A is Exclusive type and Node B is Inclusive type: if A         or B is an end node then return. Else keep all the complement         children in A and merge the intersection children of B into A.     -   4) Node A is Inclusive type and Node B is Exclusive type: Swap         node A with node B (along with their children). Repeat step 3.     -   5) Node A is Exclusive type and Node B is Connecting type: if A         is an end node, return. If B has a explicit node in its parents,         set its type to that of the closest explicit parent. Else set B         type to Exclusive. Repeat step 1 if type of B is Exclusive. Else         repeat step 3 (type of B Inclusive).     -   6) Node A is Inclusive type and Node B is Connecting type: if A         is an end node add all the children of B to A and return. If B         has an explicit node in its parents, set its type to that of the         closest explicit parent. Else set its type to Exclusive. Repeat         step 2 if type of B is Exclusive. Else repeat step (type of B is         Inclusive).     -   7) Node A is Connecting type and Node B is Exclusive type: if B         is an end node then return. If A has an explicit node in its         parents, set A type to that of the closest explicit parent. Else         set A type to Exclusive. Repeat step 1 if type of A is         Exclusive. Else repeat step 4 (type of A is Inclusive).     -   8) Node A is Connecting type and Node B is Inclusive type: if B         is an end node return. If A has an explicit node in its parents,         set A type to that of the closest explicit parent. Else set A         type to Exclusive. Repeat step 2 if type of A is Exclusive. Else         repeat step 4 (type of A is Inclusive).     -   9) Both Node A and Node B are Connecting types: if A has an         explicit node in its parents, set its type to that of the         closest explicit parent. Else set A type to Exclusive. If B has         an explicit node in its parents, set B type to that of the         closest explicit parent. Else set B type to Exclusive. If both         type of A and type of B are Exclusive Repeat step 1. Else if         both type of A and type of B are Inclusive, repeat step 2. Else         if type of A is Exclusive and type of B is Inclusive repeat         step 3. Else if type of A is Inclusive and type of B is         Exclusive repeat step 4.

The following provides a description of inclusive dominated merge rules for merging two selection representations. In merging two exclusion selection trees, there could be six possible combinations for each node pair since there are three different node types in an exclusion selection tree: Inclusively Selected node, Exclusively Selected node and Connecting node. Given the fact that the node pair is positional (A is merged into B) and for a connecting node it may have an inclusive or exclusive parent, there are altogether sixteen unique positional combinations. However, those permutations can be reduced to and processed as three basic types: Inclusive-Inclusive; Exclusive-Exclusive; and Exclusive-Inclusive.

The three merge rules for inclusive dominated merge rules are stated as follows: 1) The merge of an Inclusive-Inclusive pair is the merge of the intersection of their children; 2) The merge of an Exclusive-Exclusive pair is the symmetric difference of their children, plus the merge of the intersection of the children; and 3) The merge of an Inclusive-Exclusive pair is the relative complement of the Exclusive node in the Inclusive node of their children plus the merge of the intersection of their children. Thus, the following decision-based rules can be applied for inclusive dominated merging, which will exemplarily be described as merging selection representation tree B into selection representation tree A:

-   -   1) Both Node A and Node B are Exclusive types: if B is an end         node (i.e., no children), return (nothing to merge). Else if A         is an end node, add all B's children to A. If neither A nor B is         end node, add all the complement children of B (the ones not         found in the children of A) to those of A and merge the         intersection of the children (the ones found both in the         children of A and B) in B to A.     -   2) Both Node A and Node B are Inclusive types: if A is an end         node, return (nothing to merge). Else if B is an end node,         remove all children from A. If neither A nor B is end node,         merge the intersection of their children     -   3) Node A is Inclusive type and Node B is Exclusive type: if         either A or B is end node, return. Keep all the complement         children of B in A and merge the intersection children of B into         A.     -   4) Node A is Exclusive type and Node B is Inclusive type: if A         and B is an end node, remove node A and return. Else if A is an         end node, swap node A with node B (along with children of B).         Set the node type of the new A to a connecting type, then         return. If neither A nor B is end node, swap A and B and repeat         step 3.     -   5) Node A is Exclusive type and Node B is Connecting type: if B         has a explicit node in its parents, set B type to that of the         closest explicit parent, otherwise set B to be Exclusive type.         If A is an end node, add the children of B to A and if the type         of B is inclusive, change B to connecting. If A is not an end         node, and B is an Exclusive type, repeat step 1. If A is not an         end node, and B is an Inclusive type, swap A and B, set the type         of the new A to be Inclusive type, repeat 3.     -   6) Node A is Inclusive type and Node B is Connecting type: if A         is an end node, return. If B has an explicit node in its         parents, set B type to that of the closest explicit parent,         otherwise set B to be Exclusive type. Repeat step 1 if type of B         is Exclusive, else repeat step 3 (type of B Inclusive).     -   7) Node A is Connecting type and Node B is Exclusive type: if B         is an end node then return. If A has an explicit node in its         parents, set A type to that of the closest explicit parent, else         set A type to Exclusive. Repeat step 1 if type of A is         Exclusive, else repeat step 3 (type of A is Inclusive).     -   8) Node A is Connecting type and B is Inclusive type: if A has         an explicit node in its parents, set A type to that of the         closest explicit parent, else set A type to Exclusive. If B is         an end node and if A is an Exclusive type, remove node A and         return. Else if B is an end node and if A is an Inclusive type,         remove the children from A, then return. If B is not an end node         and A is an Inclusive type, repeat step 2. If B is not an end         node and A is an Exclusive type, swap node A and B, set the new         A to an Inclusive type, repeat step 3.     -   9) Both A and B are Connecting types: if A has an explicit node         in its parents, set A type to that of the closest explicit         parent, else set A type to Exclusive. If B has an explicit node         in its parents, set B type to that of the closest explicit         parent, else set B type to Exclusive. If both type of A and type         of B are Exclusive, repeat step 1. Else if both type of A and         type of B are Inclusive, repeat step 2. Else if type of A is         Inclusive and type of B is Exclusive, repeat step 3. Else if         type of A is Inclusive and type of B is Exclusive, swap A and B,         repeat step 4.

At 714, the resultant grouping selection representation is merged with the remainder selection representation. Merging can use exclusive dominated merge rules or inclusive dominated merge rules described above depending on the grouping logics and d on whether there is any dependency between the groupings. In this example, Inclusive Dominate Merge Rules apply because selection representations were merged from parts of the item tree that do not overlap. FIG. 12I illustrates the final selection representation for the remainder items and the groupings G1 and G2.

At 716, after or during creation of the final selection representation, selected items can be explicitly identified by filtering the item tree structure with the final selection representation. As used herein, the term “filter” is used to refer to identifying of explicitly selected items by comparing enumerated items to a selection representation. In one embodiment, an explicit list (see FIG. 1) can be generated. The filtering process can be defined as either inclusive or exclusive filtering, both of which methods benefit from the efficient representation of the final selection representation. If the average ratio of inclusive items to exclusive items is N, the number of comparisons required by this method is N times fewer than would be required by a method comparing the item tree to an explicit selection list, as is conventionally done in the prior art. Additional details regarding filtering items in a tree structure with a selection representation are described in further detail in co-pending U.S. patent application Ser. No. 11/396,890, filed Apr. 3, 2006, which application is incorporated by reference herein in its entirety.

The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope. 

1. In a computer system, including a processor and memory, that uses a first tree structure for organizing data, each node of the first tree structure being definable by a path, a method for distinguishing items in the first tree structure from logically grouped items in the first tree structure, the method comprising: identifying a first grouping of items in the first tree structure, the first grouping comprising one or more leaf components; generating a selection representation for each leaf component in the first grouping, wherein the selection representation organizes the first grouping of items as a sub-set of the first tree structure; filtering the first tree structure with the selection representation of each leaf component to identify a remainder of items in the first tree structure; and displaying the selection representation and the remainder of items in a display of the computer system.
 2. The method as recited in claim 1, wherein filtering the first tree structure with the selection representation of each leaf component to identify a remainder of items in the first tree structure further comprises at least one of: inclusively filtering the selection representation of each leaf component in the first grouping with the first tree structure; or exclusively filtering the selection representation of each leaf component in the first grouping with the first tree structure.
 3. The method as recited in claim 1, further comprising mapping the first grouping of items with the remainder of items to enable a graphical user interface of the computer system to logically display the remainder of items as separate from the first grouping of items.
 4. The method as recited in claim 1, further comprising receiving input from a user of at least one of: positive selections of at least one of the first grouping of items or the remainder of items for including in performing a predetermined function on the positively selected items; or positive unselections of at least one of the first grouping of items or the remainder of items for excluding from performing a predetermined function on the positively unselected items.
 5. The method as recited in claim 4, further comprising, based on the user input: generating a selection representation for the first grouping of items; and generating a selection representation for the remainder of items.
 6. The method as recited in claim 5, further comprising merging the selection representation for the first grouping of items with the selection representation for the remainder of items to generate a final selection representation.
 7. The method as recited in claim 6, further comprising filtering the final selection representation with the first tree structure to explicitly identify the items in the first tree structure upon which to perform a predetermined function.
 8. The method as recited in claim 7, wherein filtering the final selection representation with the first tree structure further comprises at least one of: inclusively filtering the final selection representation with the first tree structure; or exclusively filtering the final selection representation with the first tree structure.
 9. In a computer system having a graphical user interface including a display and a selection device, a method of providing items in a first tree structure on the display to allow a user to select or deselect items for inclusion in a predetermined function, at least some of the items being logically grouped, the method comprising: retrieving a first tree structure that reflects a hierarchy of data from at least one of memory or storage; identifying a first grouping of items in the first tree structure; identifying a remainder of items in the first tree structure; displaying the first grouping and the remainder of items in the first tree structure on the display; receiving input from a user of at least one of: positive selections of at least one of the first grouping of items or the remainder of items for including in performing a predetermined function on the positively selected items; or positive unselections of at least one of the first grouping of items or the remainder of items for excluding from performing a predetermined function on the positively unselected items; generating a selection representation for the first grouping of items, wherein the selection representation organizes the first grouping of items as a sub-set of the first tree structure and wherein the first grouping of items includes items from different branches of the tree structure; generating a selection representation for the remainder of items; and merging the selection representation for the first grouping of items with the selection representation of the remainder of items to generate a final selection representation.
 10. The method as recited in claim 9, wherein identifying a first grouping of items in the first tree structure and identifying a remainder of items in the first tree structure further comprises: identifying one or more leaf components of the first grouping of items; generating a selection representation for each leaf component in the first grouping; and filtering the first tree structure with the selection representation for each leaf component to identify the remainder of items in the first tree structure.
 11. The method as recited in claim 10, wherein filtering the first tree structure with the selection representation of each leaf component to identify a remainder of items in the first tree structure further comprises at least one of: inclusively filtering the selection representation each leaf component in the first grouping with the first tree structure; or exclusively filtering the selection representation each leaf component in the first grouping with the first tree structure.
 12. The method as recited in claim 10, further comprising mapping the first grouping of items with the remainder of items to enable a graphical user interface of the computer system to logically display the remainder of items as separate from the first grouping of items.
 13. The method as recited in claim 9, further comprising filtering the final selection representation with the first tree structure to explicitly identify the items in the first tree structure upon which to perform a predetermined function.
 14. The method as recited in claim 13, wherein filtering the final selection representation with the first tree structure further comprises at least one of: inclusively filtering the final selection representation with the first tree structure; or exclusively filtering the final selection representation with the first tree structure.
 15. A computer system, including a processor and memory, for generating a final selection representation of items selected in a first tree structure, the first tree structure including logical groupings of items, the computer system comprising: a file system that stores data using a hierarchy; a graphical user interface that interacts with the file system to present the data in the first tree structure to reflect the hierarchy of the data in the file system and receives input from a user of at least one of: positive selections from a user of various items in the first tree structure for performing a predetermined function on the positively selected items; or positive unselections from a user of various items in the first tree structure for excluding from performing a predetermined function on the positively unselected items; and a selection module programmed to use the input of the user and generate a final selection representation, the selection module operative to: identify a first grouping of items in the first tree structure; identify a remainder of items in the first tree structure; generate a selection representation for the first grouping of items, wherein the selection representation reduces explicitly expressed items while representing the entire first grouping of items; generate a selection representation for the remainder of items; merge the selection representation for the first grouping of items with the selection representation of the remainder of items to generate a final selection representation; and display the final selection representation on a display of the computer system.
 16. The computer system as recited in claim 15, the selection module further being configured to: identify one or more leaf components of the first grouping of items; generate a selection representation for each leaf component in the first grouping; and filter the first tree structure with the selection representation for each leaf component to identify the remainder of items in the first tree structure.
 17. The computer system as recited in claim 15, the selection module further being configured to map the first grouping of items with the remainder of items to enable the graphical user interface of the computer system to logically display the remainder of items as separate from the first grouping of items.
 18. The computer system as recited in claim 15, wherein the selection module is further configured to filter the final selection representation with the first tree structure to explicitly identify the items in the first tree structure upon which to perform a predetermined function.
 19. The computer system as recited in claim 15, further comprising an application program that communicates with the selection module for performing a predetermined function on the items in the selection representation.
 20. The computer system as recited in claim 15, wherein the application program is a backup application. 